import java.util.ArrayList;


public class BankingArray {
	private static final BankingArray bankaccount = null;
	private ArrayList<BankAccount> liste = new ArrayList<BankAccount>();
	
	public void addAccount(BankAccount bankaccount) {
		liste.add(bankaccount);
	}
	public void removeAccount(int accountnumber) {
		liste.remove(accountnumber);
	}
	public void deposit(long accountnumber ,double accountvalue){
		bankaccount.deposit(accountnumber, accountvalue);
	}
	public void clear() {
		liste.clear();
	}
	public void print() {
		System.out.println("Accounts:------------------------------------------------------------------------------------");
		for (BankAccount bankaccount : liste) {
			bankaccount.print();
		System.out.println("-----------------------------------------------------------------------------------------------------");
		}
	}
}